import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.BorderFactory;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;


public class AdminGUI {

	private static JFrame mainframe;
	private static JPanel content;
	
	private static void createAndShowGUI() {

		// Create the main window
		mainframe = new JFrame ("TestContainers");
		mainframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		// Set the GUI
		content = new JPanel(new BorderLayout(5,5), true);
		content.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
		content.add(new JLabel("File   Settings   Help"), BorderLayout.NORTH);	// Menu
		content.add(new ScaleGUI(), BorderLayout.WEST);							// Weight
		content.add(new ContainersGUI(), BorderLayout.CENTER);					// Containers
		content.add(new JLabel("Status", JLabel.RIGHT), BorderLayout.SOUTH);	// Stats

		// Pack and show
		mainframe.getContentPane().add(content);
		mainframe.pack();
		mainframe.setMinimumSize(new Dimension(640, 460));
		mainframe.setVisible(true);

	}

	public static void main(String[] args) {
		System.setProperty("sun.java2d.noddraw", Boolean.TRUE.toString());
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                createAndShowGUI();
            }
        });
    }

}
